#include "Event.h"

RockEvent::RockEvent(const Rocket::Core::String& value) : value(value)
{
}

RockEvent::~RockEvent()
{
}
// Sends the event value through to Invader's event processing system.
void RockEvent::ProcessEvent(Rocket::Core::Event& event)
{
	p_world->gui->process_gui_event(event,value);
}

// Destroys the event.
void RockEvent::OnDetach(Rocket::Core::Element* ROCKET_UNUSED(element))
{
	delete this;
}
